import request from "@/utils/request";

// 查询采购详情列表
export function listMachineLkD(query) {
  return request({
    url: "/machine/machineLkD/list",
    method: "get",
    params: query,
  });
}

// 查询最近有效的采购付款金额
export function lastMachineLkD(query) {
  return request({
    url: "/machine/machineLkD/lastMachineLkD",
    method: "get",
    params: query,
  });
}

// 查询采购详情详细
export function getMachineLkD(id) {
  return request({
    url: "/machine/machineLkD/" + id,
    method: "get",
  });
}

// 新增采购详情
export function addMachineLkD(data) {
  return request({
    url: "/machine/machineLkD",
    method: "post",
    data: data,
  });
}

// 修改采购详情
export function updateMachineLkD(data) {
  return request({
    url: "/machine/machineLkD",
    method: "put",
    data: data,
  });
}

// 删除采购详情
export function delMachineLkD(id) {
  return request({
    url: "/machine/machineLkD/" + id,
    method: "delete",
  });
}
